package com.ruoyi.course.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.course.mapper.AcademicYearMapper;
import com.ruoyi.course.domain.AcademicYear;
import com.ruoyi.course.service.IAcademicYearService;

/**
 * 学年信息Service业务层处理
 * 
 * @author chenxl
 * @date 2025-08-29
 */
@Service
public class AcademicYearServiceImpl implements IAcademicYearService 
{
    @Autowired
    private AcademicYearMapper academicYearMapper;

    /**
     * 查询学年信息
     * 
     * @param id 学年信息主键
     * @return 学年信息
     */
    @Override
    public AcademicYear selectAcademicYearById(String id)
    {
        return academicYearMapper.selectAcademicYearById(id);
    }

    /**
     * 查询学年信息列表
     * 
     * @param academicYear 学年信息
     * @return 学年信息
     */
    @Override
    public List<AcademicYear> selectAcademicYearList(AcademicYear academicYear)
    {
        return academicYearMapper.selectAcademicYearList(academicYear);
    }

    /**
     * 新增学年信息
     * 
     * @param academicYear 学年信息
     * @return 结果
     */
    @Override
    public int insertAcademicYear(AcademicYear academicYear)
    {
        return academicYearMapper.insertAcademicYear(academicYear);
    }

    /**
     * 修改学年信息
     * 
     * @param academicYear 学年信息
     * @return 结果
     */
    @Override
    public int updateAcademicYear(AcademicYear academicYear)
    {
        return academicYearMapper.updateAcademicYear(academicYear);
    }

    /**
     * 批量删除学年信息
     * 
     * @param ids 需要删除的学年信息主键
     * @return 结果
     */
    @Override
    public int deleteAcademicYearByIds(String[] ids)
    {
        return academicYearMapper.deleteAcademicYearByIds(ids);
    }

    /**
     * 删除学年信息信息
     * 
     * @param id 学年信息主键
     * @return 结果
     */
    @Override
    public int deleteAcademicYearById(String id)
    {
        return academicYearMapper.deleteAcademicYearById(id);
    }
}
